import { http } from '@/utils/http'
import { defineStore } from 'pinia'

export const useAppTxtStore = defineStore(
	'appTxt',
	() => {
		const appTxt = ref(null)

		const getAppTxt = async () => {
			let res: any = await http.get('/Usersd/index')
			if (res.code == 200) {
				console.log('res', res)
				appTxt.value = res.msg
			}
		}

		return {
			appTxt,
			getAppTxt,
		}
	},
	{
		persist: true,
	},
)
